#include <stdio.h>
#include <string.h>

int getStringLength(const char *str)
{
    int count = 0;
    while (str[count] != '\0')
    {
        count++;
    }
    return count;
}

int main(int argc, char *argv[])
{
    char *ch = "hello world! ~";
    printf("string length: %d\n", strlen(ch));
    printf("string length: %d\n", getStringLength(ch));

    return 0;
}
